using UnityEngine;
using System.Collections;

public class TUHOUTUMINEN : MonoBehaviour {
	
public int hiparit=1;	
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	void OnCollisionEnter()
	{
		hiparit-=1;
		if(hiparit<=0)
		
		{
		Destroy (gameObject);	
		}
}
}